package com.hks.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName(value = "sys_role")
public class Role implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField(value = "role_name")
    private String roleName;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "del_flag")
    private Integer delFlag;

    @TableField(value = "create_id")
    private Integer createId;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_id")
    private Integer updateId;

    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "role_key")
    private String roleKey;
}
